﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace PYNET.Models
{
    public class Article
    {
        /// <summary>
        /// 主键，文章ID
        /// </summary>
        [Key]
        public int AId { get; set; }
        /// <summary>
        /// 文章作者ID
        /// </summary>
        [Required]
        public int UId { get; set; }
        ///<summary>
        ///文章标题
        ///</summary>
        [Required]
        public string Title { get; set; }
        /// <summary>
        /// 文章内容
        /// </summary>
        /// [Required]
        public string Introduce { get; set; }
        ///<summary>
        ///文章图片
        ///</summary>
        [Required]
        public string ArticlePicture { get; set; }
        [Required]
        public string Content { get; set; }  
        /// <summary>
        /// 点赞数量
        /// </summary>
        public int LikeNumber { get; set; }
    }
}
